package com.yanqu.road.entity.grandchild;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.math.BigInteger;
import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_c_grand_child_exam_join")
public class JoinExamGrandChild extends DataObject {

    @FieldTypeAnnotation(desc = "考场ID", select = true, update = true)
    private long examNo;
    @FieldTypeAnnotation(desc = "孙子ID", update = true)
    private String id;
    @FieldTypeAnnotation(desc = "玩家ID")
    private long userId;
    @FieldTypeAnnotation(desc = "昵称")
    private String nickName;
    @FieldTypeAnnotation(desc = "孙子赚速")
    private BigInteger earnSpeed;
    @FieldTypeAnnotation(desc = "孙子形象")
    private int appearanceId;
    @FieldTypeAnnotation(desc = "位置，0开始")
    private int pos;
    @FieldTypeAnnotation(desc = "科举结果")
    private int title;
    @FieldTypeAnnotation(desc = "buff")
    private String buff = "";

    public String getBuff() {
        return buff;
    }

    public void setBuff(String buff) {
        if (buff == null) {
            return;
        }
        if (!Objects.equals(buff, this.buff)) {
            this.buff = buff;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (!Objects.equals(this.userId, userId)) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getExamNo() {
        return examNo;
    }

    public void setExamNo(long examNo) {
        if (!Objects.equals(this.examNo, examNo)) {
            this.examNo = examNo;
            setUpdateOption();
        }
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        if (!Objects.equals(this.nickName, nickName)) {
            this.nickName = nickName;
            setUpdateOption();
        }
    }

    public BigInteger getEarnSpeed() {
        return earnSpeed;
    }

    public void setEarnSpeed(BigInteger earnSpeed) {
        if (!Objects.equals(this.earnSpeed, earnSpeed)) {
            this.earnSpeed = earnSpeed;
            setUpdateOption();
        }
    }

    public int getAppearanceId() {
        return appearanceId;
    }

    public void setAppearanceId(int appearanceId) {
        if (!Objects.equals(this.appearanceId, appearanceId)) {
            this.appearanceId = appearanceId;
            setUpdateOption();
        }
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        if (!Objects.equals(this.pos, pos)) {
            this.pos = pos;
            setUpdateOption();
        }
    }

    public int getTitle() {
        return title;
    }

    public void setTitle(int title) {
        if (!Objects.equals(this.title, title)) {
            this.title = title;
            setUpdateOption();
        }
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        if (!Objects.equals(this.id, id)) {
            this.id = id;
            setUpdateOption();
        }
    }
}
